package cn.tedu._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author Justin Parker
 * @Date 2024/8/15 0015 9:43
 * @Version 1.0
 */
public class TestCalculator {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._07springaop");

        CalculatorImpl bean = context.getBean(CalculatorImpl.class);
        bean.add(20,10);

    }
}
